package com.zyms.factory;

/**
 * Created by Baggio on 2018-2-6.
 */
public class SMSTemplateCodeFactoty {
    //短信注册验证码
    public static final  String SMS_TEMPLATE_CODE_REGISTE ="SMS_57155070";

    //找回密码验证码
    public static final String SMS_TEMPLATE_CODE_CHANGE_PASS_WORD="SMS_57020123";
    public static String getTemplateCode(String key){
        String templateCode;
        switch (key){
            case "REGISTE":
                templateCode=SMS_TEMPLATE_CODE_REGISTE;
                 break;
                 case "CHANGE_PASS_WORD":
                templateCode=SMS_TEMPLATE_CODE_CHANGE_PASS_WORD;
                 break;

            default:
                templateCode=null;
                break;
        }
        return templateCode;
    }
}
